-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor: Add a test for version() function #12441
Conversation
|
||
#[tokio::test] | ||
async fn test_version_function() { | ||
let expected_version = format!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The best I can come up with was to programatically create the same expected output.
It would be better to make it with something different, but given it changes with architecture and release this is the best I could come up with
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thanks @alamb I'm just thinking should be a version a SQL function or we can extend the SHOW statement
You mean like > SHOW ALL
...
| datafusion.execution.parquet.created_by | datafusion version 41.0.0 | Maybe we could just have a |
I was actually thinking about |
> show version;
Error during planning: 'version' is not a variable which can be viewed with 'SHOW' It seems like it would be fairly straightforward to add support for |
Thanks again @comphead |
Which issue does this PR close?
Part of #12424
Follow on to #12429
Rationale for this change
Testing the
version()
function is a bit tricky as the output is platform and version dependent so we didn't put one in #12429What changes are included in this PR?
Add a test for
version()
Are these changes tested?
All tests
Are there any user-facing changes?
No, this is test only